<h2>书本表单</h2>
<form method="post">
  {% csrf_token %}
  {{ form.as_p }}
  <button type="submit">保存</button>
</form>
<a href="{% url 'index' %}">返回首页</a>
<h2>书本表单</h2>
<form method="post">
  {% csrf_token %}
  <p>{{ form.title.label }}: {{ form.title }}</p>
  <p>{{ form.author_name.label }}: {{ form.author_name }}</p>
  <p>{{ form.description.label }}: {{ form.description }}</p>
  <p>{{ form.summary.label }}: {{ form.summary }}</p>
  <button type="submit">保存</button>
</form>
<a href="{% url 'index' %}">返回首页</a>